//目的 以前访问/home能够访问到布局组件 现在希望访问 / 就能访问到布局组件
import allRoutes from "./generateRoute"
console.log(allRoutes, 999);
let homeRoute = allRoutes.find(item => item.path === '/home')
let paymentRoute = homeRoute.children.find(item => item.path === 'payment')
let preorderRoute = homeRoute.children.find(item => item.path === 'preorder')
console.log(preorderRoute, 7979);
let dynamicRoute = {
    path: "/",
    children: [paymentRoute, preorderRoute],
    component: () => import(/*webpackChunkName:'layout'*/"@/layout/container.vue")
}

console.log(dynamicRoute);
export default dynamicRoute